php forum
php mysql forum
php mysql smarty
 
Topic Options
#282004 - 11/16/04 03:10 AM Beta-[6.5] User Group Status Flags 6.5
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version: User Group Status Flags 6.5 <br /><br />Description: Allows you to place little graphics next to users in special groups (similar to the admin/mod flags). You can set which groups and create your own images to use.<br /> <br /><br />Working Under: UBB.Threads 6.5 <br /><br />Mod Status: Beta <br /><br />Any pre-requisites: 6.5 <br /><br />Author(s): JoshPet <br /><br />Date: 11/16/04 <br /><br />Credits: www.sportbikes.com for commissioning upgrade <br /><br />Files Altered: ubbt.inc.php, postlist.php, showflat.php, showthreaded.php <br /><br />New Files: You will need to create images (special.gif or special1.gif etc...) as needed and upload them to your /images directory<br /> <br /><br />Database Altered: none <br /><br />Info/Instructions: Pay special attention to the notes, as if you have more or less groups, you may need to adjust the code as necessary.<br /> <br /><br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /><br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
123059-UserGroupStatusFlags6.5.txt (125 downloads)


Top
#282005 - 11/16/04 11:59 AM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Daine]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
How would one go about placing the image below<br />Reged: 11/29/01 <br />Posts: 10907 <br />Loc: Charlotte, NC <br /><br />IMAGE HERE<br /><br />instead of near the user name?
_________________________
DrChaos
LeetGamers

Top
#282006 - 11/16/04 01:32 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Duck]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
If memory serves right you will need to change the location of the $postrow[$i]['UserStatus'] in the showflat.tmpl and position it below the location.<br /><br />So the:<br /><br /><b>{$postrow[$i]['Username']}{$postrow[$i]['UserStatus']}</b><br /><br /><br /><span class="small"><br />{$postrow[$i]['Title']}<br /><br /><br />{$postrow[$i]['Rating']}<br /><br /><br />{$postrow[$i]['Picture']}<br /><br /><br />{$postrow[$i]['Registered']}<br /><br /><br />{$postrow[$i]['TotalPosts']}<br /><br /><br />{$postrow[$i]['Location']}<br /><br /><br />will become:<br /><br /><b>{$postrow[$i]['Username']}</b><br /><br /><br /><span class="small"><br />{$postrow[$i]['Title']}<br /><br /><br />{$postrow[$i]['Rating']}<br /><br /><br />{$postrow[$i]['Picture']}<br /><br /><br />{$postrow[$i]['Registered']}<br /><br /><br />{$postrow[$i]['TotalPosts']}<br /><br /><br />{$postrow[$i]['Location']}<br /><br /><br />{$postrow[$i]['UserStatus']}<br /><br />Similarly for showthreaded you need to change this:<br /><br /><b>$Username$MainUserStatus</b><br /><br /><br /><span class="small"><br />$Title<br /><br /><br />$Rating<br /><br /><br />$Picture<br /><br /><br />$Registered<br /><br /><br />$TotalPosts<br /><br /><br />$Location<br /></span><br /><br />to this:<br /><br /><b>$Username</b><br /><br /><br /><span class="small"><br />$Title<br /><br /><br />$Rating<br /><br /><br />$Picture<br /><br /><br />$Registered<br /><br /><br />$TotalPosts<br /><br /><br />$Location<br /><br /><br />$MainUserStatus<br /></span><br /><br /><br />With this approach you can use a bit bigger graphics
_________________________
Nikos

Top
#282007 - 11/16/04 04:28 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Hal_dup2]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Thanks <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Im planning to use it for members that play different online games. Right now Im testing it to show a Halo 2 image and linking that image to the reveliant persosn stats for that game.
_________________________
DrChaos
LeetGamers

Top
#282008 - 11/16/04 06:03 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Duck]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
OK, got it installed but for the life of me I cant see where you would set what group to use what image? <br /> <br />EDIT: <br />The code you said to change, changes all the admins and mods letters to the bottom also. I was just tring to change the "special group image" <br /> <br />


Edited by DrChaos (11/16/04 06:56 PM)
_________________________
DrChaos
LeetGamers

Top
#282009 - 11/17/04 06:32 AM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Duck]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
In that case you will need to change it a bit more. You will need to leave the {$postrow[$i]['UserStatus']} where it is and introduce a new array dimention something like {$postrow[$i]['NewImage']} which will be populated according to the group that the user belongs to (and then you can distiguish whether mods/admins are affected by this or not) and display any information you need from there on. <br /> <br />Edit: And of course you will place the {$postrow[$i]['NewImage']} wherever you want in the template to be shown. The same thing happens with showthreaded screens - the names of the variables differ a bit.


Edited by dimopoulos (11/17/04 06:34 AM)
_________________________
Nikos

Top
#282010 - 11/17/04 03:36 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Hal_dup2]
Sapphy Offline
Power User

Registered: 09/03/03
Posts: 70
Josh, I noticed that on the postlist.php edits t1.B_Body is missing off the end of both the original and replacement SELECT statement lines. I kept them in on mine. (running 6.5 latest release).

Top
#282011 - 11/17/04 09:28 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Steve_OS]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That must be from another mod - yeah, if your code is different, you need to add the group field to the end of it.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#282012 - 11/18/04 04:44 AM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Daine]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
This seems a lot like Admin Selectable Ratings which you allready use for your UBBDev Haxxor image ,can you explain the difference?
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top
#282013 - 11/18/04 04:43 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: barbiro]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This is dependant on usergroup - so what this is mostly used for - if you offer subscriptions/donations via MyPaymentPal or similar - you can give those folks a ribbon next to their name after they make payment. This one is totally automatic - and next to the username like an admin/mod flag. You have to define each Admin selectable ratings on a user by user bases.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#282014 - 11/19/04 11:36 AM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Daine]
Sapphy Offline
Power User

Registered: 09/03/03
Posts: 70
My members are loving this. Thanks again Josh! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#282015 - 02/15/05 12:32 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Daine]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Josh, can you tell me the difference between this mod and the mod I am using right now on my board: "Group Name Display 2.0"<br /><br />I'm now ugrading my current board from 6.4.1 to 6.5.1b5 and I really need my old mod to be working again <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br /><br />Thanks

Top
#282016 - 02/25/05 06:18 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: 10k]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
How do I show both the paid flag and the Admin/Mod Flag? <br />and show up in the active topics list?


Edited by oceanwest (02/25/05 06:46 PM)
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#282017 - 02/27/05 07:46 PM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: Daine]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
This is nifty . . . but I'd like to see something that instead of giving users of a specific group a special flag, would set up a color class for their names (like modname and adminname) that a new stylesheet element could be defined for, so that a specific group could be made to stand out by name color on the boards, rather than by a status flag.

Top
#282018 - 03/01/05 02:38 AM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: astre]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
*bump* <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#282019 - 05/10/05 09:43 AM Re: Beta-[6.5] User Group Status Flags 6.5 [Re: sdf123]
Kernal Offline
Lurker

Registered: 08/26/03
Posts: 1
Great mod. I have been trying to get the "special" group name to display in the Who's Online screen. I added the text I want displayed to the language file. But trying to set the Status by the U_Groups feild has not worked. I'm sure it's something little I'm missing. <br />Thanks.

Top



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks